<!DOCTYPE html>
<html lang="en">

<head>
  
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Aliwork helper Form</title>

  <script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
  <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
  <script src="./build/entry.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  <![endif]-->
  <link href="https://fonts.googleapis.com/css?family=Roboto:100,400,700|Inconsolata,700" rel="stylesheet">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
  <link type="text/css" rel="stylesheet" href="https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow-night.min.css">
  <link type="text/css" rel="stylesheet" href="styles/app.min.css">
  <link type="text/css" rel="stylesheet" href="styles/iframe.css">
  <link type="text/css" rel="stylesheet" href="styles/custom.css">
  <script async defer src="https://buttons.github.io/buttons.js"></script>

  
</head>



<body class="layout small-header">
    <div id="stickyNavbarOverlay"></div>
    

<div class="top-nav">
    <div class="inner">
        <a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
            <span aria-hidden="true"></span>
            <span aria-hidden="true"></span>
            <span aria-hidden="true"></span>
        </a>
        <div class="logo">
             
                <a class="image" href="index.html">
                    <img src="assets/logo.png" alt="logo">
                </a>
            
             
                <a href="index.html">
                    <h1 class="navbar-item">Aliwork helper</h1>
                </a>
            
        </div>
        <div class="menu">
            
            <div class="navigation">
                <a
                    href="index.html"
                    class="link"
                >
                    Documentation
                </a>
                
                 
                    
                        <a
                            class="link user-link "
                            href="https://docs.aliwork.com/docs/developer/api/about"
                        >
                            宜搭开放API
                        </a>
                    
                
                
            </div>
        </div>
    </div>
</div>
    <div id="main">
        <div
            class="sidebar "
            id="sidebarNav"
        >
            
                <div class="search-wrapper">
                    <input id="search" type="text" placeholder="Search docs..." class="input">
                </div>
            
            <nav>
                
                    <h2><a href="index.html">Documentation</a></h2><div class="category"><h3>Modules</h3><ul><li><a href="module-Form.html">Form</a></li><li><a href="module-UI.html">UI</a></li><li><a href="module-Utils.html">Utils</a></li></ul></div>
                
            </nav>
        </div>
        <div class="core" id="main-content-wrapper">
            <div class="content">
                <header class="page-title">
                    <p>Module</p>
                    <h1>Form</h1>
                </header>
                




<section>

<header>
    
</header>

<article>
    <div class="container-overview">
    
        
            <div class="description">表单相关方法</div>
        

        


<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="form.js.html" class="button">View Source</a>
            <span>
                <a href="form.js.html">form.js</a>, <a href="form.js.html#line1">line 1</a>
            </span>
        </p>
    
</dl>


        
    
    </div>
    
    

    

    

    

    

    

    

    
        <div class='vertical-section'>
            <h1>Methods</h1>
            <div class="members">
            
                <div class="member">


    
    <h4 class="name" id=".activateTabItems">
        <a class="href-link" href="#.activateTabItems">#</a>
        
            
                <span class='tag'>static</span>
            
        
        <span class="code-name">
            
                activateTabItems<span class="signature">(context, tabFieldId)</span><span class="type-signature"></span>
            
        </span>
    </h4>
    

    
    
    <div class="description">
        激活Tab组件中所有Tab项
    </div>
    









    <h5>Parameters:</h5>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            

            <th class="last">Description</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>context</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">this上下文</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>tabFieldId</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">TAB组件唯一标识符</td>
</tr>


        
        </tbody>
    </table>
</div>





<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="form.js.html" class="button">View Source</a>
            <span>
                <a href="form.js.html">form.js</a>, <a href="form.js.html#line556">line 556</a>
            </span>
        </p>
    
</dl>





















</div>
            
                <div class="member">


    
    <h4 class="name" id=".deleteFormData">
        <a class="href-link" href="#.deleteFormData">#</a>
        
            
                <span class='tag'>async</span>
            
                <span class='tag'>static</span>
            
        
        <span class="code-name">
            
                deleteFormData<span class="signature">(context, instanceId)</span><span class="type-signature"></span>
            
        </span>
    </h4>
    

    
    
    <div class="description">
        删除表单实例数据
    </div>
    









    <h5>Parameters:</h5>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            

            <th class="last">Description</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>context</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">this上下文</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>instanceId</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">实例ID</td>
</tr>


        
        </tbody>
    </table>
</div>





<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="form.js.html" class="button">View Source</a>
            <span>
                <a href="form.js.html">form.js</a>, <a href="form.js.html#line539">line 539</a>
            </span>
        </p>
    
</dl>





















    <h5>Example</h5>
    
    
        <pre class="prettyprint"><code>// 使用前请添加数据源：
// 名称：deleteFormData
// 请求方法：POST
// 请求地址：/dingtalk/web/APP_xxxxxx/v1/form/deleteFormData.json

deleteFormData(this, "FINST-12839128319823").then(() => {
  console.log("删除成功");
});</code></pre>
    


</div>
            
                <div class="member">


    
    <h4 class="name" id=".fetchSubformDatas">
        <a class="href-link" href="#.fetchSubformDatas">#</a>
        
            
                <span class='tag'>async</span>
            
                <span class='tag'>static</span>
            
        
        <span class="code-name">
            
                fetchSubformDatas<span class="signature">(context, formUuid, formInstanceId, tableFieldId, currentPage, pageSize)</span><span class="type-signature"></span>
            
        </span>
    </h4>
    

    
    
    <div class="description">
        获取子表数据
    </div>
    









    <h5>Parameters:</h5>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            

            <th class="last">Description</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>context</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">this上下文</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>formUuid</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">表单ID</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>formInstanceId</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">表单实例ID</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>tableFieldId</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">子表唯一标识</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>currentPage</code></td>
  

  <td class="type">
  
      
<code class="param-type">number</code>


  
  </td>

  

  

  <td class="description last">当前页， 默认为1</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>pageSize</code></td>
  

  <td class="type">
  
      
<code class="param-type">number</code>


  
  </td>

  

  

  <td class="description last">每页记录数， 默认为10</td>
</tr>


        
        </tbody>
    </table>
</div>





<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="form.js.html" class="button">View Source</a>
            <span>
                <a href="form.js.html">form.js</a>, <a href="form.js.html#line342">line 342</a>
            </span>
        </p>
    
</dl>


















    <div class='columns method-parameter'>
        <div class="column is-2"><label>Returns:</label></div>
        <div class="column is-10">
            
                    

<div class="columns">
    
    
</div>

                
        </div>
    </div>




    <h5>Example</h5>
    
    
        <pre class="prettyprint"><code>使用前请添加数据源：
名称：saveFormData
请求方法：GET
请求地址：/dingtalk/web/APP_xxxxxx/v1/form/listTableDataByFormInstIdAndTableId.json</code></pre>
    


</div>
            
                <div class="member">


    
    <h4 class="name" id=".fetchSubformDatasAll">
        <a class="href-link" href="#.fetchSubformDatasAll">#</a>
        
            
                <span class='tag'>async</span>
            
                <span class='tag'>static</span>
            
        
        <span class="code-name">
            
                fetchSubformDatasAll<span class="signature">(context, formUuid, formInstanceId, tableFieldId)</span><span class="type-signature"></span>
            
        </span>
    </h4>
    

    
    
    <div class="description">
        获取所有子表数据
    </div>
    









    <h5>Parameters:</h5>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            

            <th class="last">Description</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>context</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">this上下文</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>formUuid</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">表单ID</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>formInstanceId</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">表单实例ID</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>tableFieldId</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">子表唯一标识</td>
</tr>


        
        </tbody>
    </table>
</div>





<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="form.js.html" class="button">View Source</a>
            <span>
                <a href="form.js.html">form.js</a>, <a href="form.js.html#line392">line 392</a>
            </span>
        </p>
    
</dl>





















</div>
            
                <div class="member">


    
    <h4 class="name" id=".getFormData">
        <a class="href-link" href="#.getFormData">#</a>
        
            
                <span class='tag'>static</span>
            
        
        <span class="code-name">
            
                getFormData<span class="signature">(context, type, formInstId)</span><span class="type-signature"></span>
            
        </span>
    </h4>
    

    
    
    <div class="description">
        获取表单实例详情
    </div>
    









    <h5>Parameters:</h5>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            

            <th class="last">Description</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>context</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">this上下文</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>type</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">类型，取值为 form-表单或者porcess-流程</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>formInstId</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">表单实例ID</td>
</tr>


        
        </tbody>
    </table>
</div>





<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="form.js.html" class="button">View Source</a>
            <span>
                <a href="form.js.html">form.js</a>, <a href="form.js.html#line13">line 13</a>
            </span>
        </p>
    
</dl>





















</div>
            
                <div class="member">


    
    <h4 class="name" id=".saveFormData">
        <a class="href-link" href="#.saveFormData">#</a>
        
            
                <span class='tag'>async</span>
            
                <span class='tag'>static</span>
            
        
        <span class="code-name">
            
                saveFormData<span class="signature">(context, formUuid, formData)</span><span class="type-signature"> &rarr; {string}</span>
            
        </span>
    </h4>
    

    
    
    <div class="description">
        新建表单实例
    </div>
    









    <h5>Parameters:</h5>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            

            <th class="last">Description</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>context</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">this上下文</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>formUuid</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">表单ID</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>formData</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">表单数据对象</td>
</tr>


        
        </tbody>
    </table>
</div>





<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="form.js.html" class="button">View Source</a>
            <span>
                <a href="form.js.html">form.js</a>, <a href="form.js.html#line451">line 451</a>
            </span>
        </p>
    
</dl>


















    <div class='columns method-parameter'>
        <div class="column is-2"><label>Returns:</label></div>
        <div class="column is-10">
            
                    

<div class="columns">
    
    <div class='param-desc column is-7'>表单实例ID</div>
    
    
    <div class='column is-5 has-text-left'>
        <label>Type: </label>
        
<code class="param-type">string</code>


    </div>
    
</div>

                
        </div>
    </div>




    <h5>Example</h5>
    
    
        <pre class="prettyprint"><code>使用前请添加数据源：
名称：saveFormData
请求方法：POST
请求地址：/dingtalk/web/APP_xxxxxx/v1/form/saveFormData.json</code></pre>
    


</div>
            
                <div class="member">


    
    <h4 class="name" id=".searchFormDataIds">
        <a class="href-link" href="#.searchFormDataIds">#</a>
        
            
                <span class='tag'>async</span>
            
                <span class='tag'>static</span>
            
        
        <span class="code-name">
            
                searchFormDataIds<span class="signature">(context, type, formUuid, searchFieldObject, currentPage, pageSize, options)</span><span class="type-signature"> &rarr; {Promise}</span>
            
        </span>
    </h4>
    

    
    
    <div class="description">
        查询表单实例ID列表
    </div>
    









    <h5>Parameters:</h5>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            

            <th class="last">Description</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>context</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">this上下文</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>type</code></td>
  

  <td class="type">
  
      
<code class="param-type">"form"</code>
|

<code class="param-type">"process"</code>


  
  </td>

  

  

  <td class="description last">表单类型，可选 form、process，分别代表普通表单和流程</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>formUuid</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">表单ID</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>searchFieldObject</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">表单组件查询条件对象</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>currentPage</code></td>
  

  <td class="type">
  
      
<code class="param-type">number</code>


  
  </td>

  

  

  <td class="description last">当前页， 默认为1</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>pageSize</code></td>
  

  <td class="type">
  
      
<code class="param-type">number</code>


  
  </td>

  

  

  <td class="description last">每页记录数， 默认为10</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>options</code></td>
  

  <td class="type">
  
      
<code class="param-type">SearchFormDatasOption</code>


  
  </td>

  

  

  <td class="description last">查询选项</td>
</tr>


        
        </tbody>
    </table>
</div>





<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="form.js.html" class="button">View Source</a>
            <span>
                <a href="form.js.html">form.js</a>, <a href="form.js.html#line82">line 82</a>
            </span>
        </p>
    
</dl>


















    <div class='columns method-parameter'>
        <div class="column is-2"><label>Returns:</label></div>
        <div class="column is-10">
            
                    

<div class="columns">
    
    
    <div class='column is-5 has-text-left'>
        <label>Type: </label>
        
<code class="param-type">Promise</code>


    </div>
    
</div>

                
        </div>
    </div>




    <h5>Example</h5>
    
    
        <pre class="prettyprint"><code>使用前请添加数据源：
如果要更新普通表单：
名称：searchFormDataIds
请求方法：GET
请求地址：/dingtalk/web/APP_xxxxxx/v1/form/searchFormDataIds.json
如果要更新流程表单：
名称：getInstanceIds
请求方法：GET
请求地址：/dingtalk/web/APP_xxxxxx/v1/process/getInstanceIds.json</code></pre>
    


</div>
            
                <div class="member">


    
    <h4 class="name" id=".searchFormDataIdsAll">
        <a class="href-link" href="#.searchFormDataIdsAll">#</a>
        
            
                <span class='tag'>async</span>
            
                <span class='tag'>static</span>
            
        
        <span class="code-name">
            
                searchFormDataIdsAll<span class="signature">(context, type, formUuid, searchFieldObject, options)</span><span class="type-signature"> &rarr; {Promise}</span>
            
        </span>
    </h4>
    

    
    
    <div class="description">
        查询符合条件的所有表单实例ID
    </div>
    









    <h5>Parameters:</h5>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            

            <th class="last">Description</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>context</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">this上下文</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>type</code></td>
  

  <td class="type">
  
      
<code class="param-type">"form"</code>
|

<code class="param-type">"process"</code>


  
  </td>

  

  

  <td class="description last">表单类型，可选 form、process，分别代表普通表单和流程</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>formUuid</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">表单ID</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>searchFieldObject</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">表单组件查询条件对象</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>options</code></td>
  

  <td class="type">
  
      
<code class="param-type">SearchFormDatasOption</code>


  
  </td>

  

  

  <td class="description last">查询选项</td>
</tr>


        
        </tbody>
    </table>
</div>





<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="form.js.html" class="button">View Source</a>
            <span>
                <a href="form.js.html">form.js</a>, <a href="form.js.html#line158">line 158</a>
            </span>
        </p>
    
</dl>


















    <div class='columns method-parameter'>
        <div class="column is-2"><label>Returns:</label></div>
        <div class="column is-10">
            
                    

<div class="columns">
    
    
    <div class='column is-5 has-text-left'>
        <label>Type: </label>
        
<code class="param-type">Promise</code>


    </div>
    
</div>

                
        </div>
    </div>




    <h5>Example</h5>
    
    
        <pre class="prettyprint"><code>使用前请添加数据源：
如果要更新普通表单：
名称：searchFormDataIds
请求方法：GET
请求地址：/dingtalk/web/APP_xxxxxx/v1/form/searchFormDataIds.json
如果要更新流程表单：
名称：getInstanceIds
请求方法：GET
请求地址：/dingtalk/web/APP_xxxxxx/v1/process/getInstanceIds.json</code></pre>
    


</div>
            
                <div class="member">


    
    <h4 class="name" id=".searchFormDatas">
        <a class="href-link" href="#.searchFormDatas">#</a>
        
            
                <span class='tag'>async</span>
            
                <span class='tag'>static</span>
            
        
        <span class="code-name">
            
                searchFormDatas<span class="signature">(context, type, formUuid, searchFieldObject, currentPage, pageSize, options)</span><span class="type-signature"> &rarr; {Promise}</span>
            
        </span>
    </h4>
    

    
    
    <div class="description">
        查询表单实例数据列表
    </div>
    









    <h5>Parameters:</h5>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            

            <th class="last">Description</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>context</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">this上下文</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>type</code></td>
  

  <td class="type">
  
      
<code class="param-type">"form"</code>
|

<code class="param-type">"process"</code>


  
  </td>

  

  

  <td class="description last">表单类型，可选 form、process，分别代表普通表单和流程</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>formUuid</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">表单ID</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>searchFieldObject</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">表单组件查询条件对象</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>currentPage</code></td>
  

  <td class="type">
  
      
<code class="param-type">number</code>


  
  </td>

  

  

  <td class="description last">当前页， 默认为1</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>pageSize</code></td>
  

  <td class="type">
  
      
<code class="param-type">number</code>


  
  </td>

  

  

  <td class="description last">每页记录数， 默认为10</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>options</code></td>
  

  <td class="type">
  
      
<code class="param-type">SearchFormDatasOption</code>


  
  </td>

  

  

  <td class="description last">查询选项</td>
</tr>


        
        </tbody>
    </table>
</div>





<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="form.js.html" class="button">View Source</a>
            <span>
                <a href="form.js.html">form.js</a>, <a href="form.js.html#line217">line 217</a>
            </span>
        </p>
    
</dl>


















    <div class='columns method-parameter'>
        <div class="column is-2"><label>Returns:</label></div>
        <div class="column is-10">
            
                    

<div class="columns">
    
    
    <div class='column is-5 has-text-left'>
        <label>Type: </label>
        
<code class="param-type">Promise</code>


    </div>
    
</div>

                
        </div>
    </div>




    <h5>Example</h5>
    
    
        <pre class="prettyprint"><code>使用前请添加数据源：
如果要更新普通表单：
名称：searchFormDatas
请求方法：GET
请求地址：/dingtalk/web/APP_xxxxxx/v1/form/searchFormDatas.json
如果要更新流程表单：
名称：getInstances
请求方法：GET
请求地址：/dingtalk/web/APP_xxxxxx/v1/process/getInstances.json</code></pre>
    


</div>
            
                <div class="member">


    
    <h4 class="name" id=".searchFormDatasAll">
        <a class="href-link" href="#.searchFormDatasAll">#</a>
        
            
                <span class='tag'>async</span>
            
                <span class='tag'>static</span>
            
        
        <span class="code-name">
            
                searchFormDatasAll<span class="signature">(context, type, formUuid, searchFieldObject, options)</span><span class="type-signature"> &rarr; {Promise}</span>
            
        </span>
    </h4>
    

    
    
    <div class="description">
        查询符合条件的所有表单实例
    </div>
    









    <h5>Parameters:</h5>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            

            <th class="last">Description</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>context</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">this上下文</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>type</code></td>
  

  <td class="type">
  
      
<code class="param-type">"form"</code>
|

<code class="param-type">"process"</code>


  
  </td>

  

  

  <td class="description last">表单类型，可选 form、process，分别代表普通表单和流程</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>formUuid</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  

  <td class="description last">表单ID</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>searchFieldObject</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  

  <td class="description last">表单组件查询条件对象</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>options</code></td>
  

  <td class="type">
  
      
<code class="param-type">SearchFormDatasOption</code>


  
  </td>

  

  

  <td class="description last">查询选项</td>
</tr>


        
        </tbody>
    </table>
</div>





<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="form.js.html" class="button">View Source</a>
            <span>
                <a href="form.js.html">form.js</a>, <a href="form.js.html#line289">line 289</a>
            </span>
        </p>
    
</dl>


















    <div class='columns method-parameter'>
        <div class="column is-2"><label>Returns:</label></div>
        <div class="column is-10">
            
                    

<div class="columns">
    
    
    <div class='column is-5 has-text-left'>
        <label>Type: </label>
        
<code class="param-type">Promise</code>


    </div>
    
</div>

                
        </div>
    </div>




</div>
            
                <div class="member">


    
    <h4 class="name" id=".updateFormData">
        <a class="href-link" href="#.updateFormData">#</a>
        
            
                <span class='tag'>async</span>
            
                <span class='tag'>static</span>
            
        
        <span class="code-name">
            
                updateFormData<span class="signature">(context, type, instanceId, updateFormData, useLatestVersion)</span><span class="type-signature"></span>
            
        </span>
    </h4>
    

    
    
    <div class="description">
        更新表单/流程实例数据
    </div>
    









    <h5>Parameters:</h5>
    
<div class="table-container">
    <table class="params table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            
            <th>Default</th>
            

            <th class="last">Description</th>
        </tr>
        </thead>

        <tbody>
        

            
<tr class="deep-level-0">
  
      <td class="name"><code>context</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  
      <td class="default">
      
      </td>
  

  <td class="description last">this上下文</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>type</code></td>
  

  <td class="type">
  
      
<code class="param-type">"form"</code>
|

<code class="param-type">"process"</code>


  
  </td>

  

  
      <td class="default">
      
      </td>
  

  <td class="description last">表单类型，可选 form、process，分别代表普通表单和流程</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>instanceId</code></td>
  

  <td class="type">
  
      
<code class="param-type">string</code>


  
  </td>

  

  
      <td class="default">
      
      </td>
  

  <td class="description last">实例ID</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>updateFormData</code></td>
  

  <td class="type">
  
      
<code class="param-type">object</code>


  
  </td>

  

  
      <td class="default">
      
      </td>
  

  <td class="description last">要更新的表单数据对象</td>
</tr>


        

            
<tr class="deep-level-0">
  
      <td class="name"><code>useLatestVersion</code></td>
  

  <td class="type">
  
      
<code class="param-type">boolean</code>


  
  </td>

  

  
      <td class="default">
      
          false
      
      </td>
  

  <td class="description last">是否使用最新的表单版本进行更新，默认为false，仅对普通表单有效</td>
</tr>


        
        </tbody>
    </table>
</div>





<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="form.js.html" class="button">View Source</a>
            <span>
                <a href="form.js.html">form.js</a>, <a href="form.js.html#line492">line 492</a>
            </span>
        </p>
    
</dl>





















    <h5>Example</h5>
    
    
        <pre class="prettyprint"><code>使用前请添加数据源：
如果要更新普通表单：
名称：updateFormData
请求方法：POST
请求地址：/dingtalk/web/APP_xxxxxx/v1/form/updateFormData.json
如果要更新流程表单：
名称：updateInstance
请求方法：POST
请求地址：/dingtalk/web/APP_xxxxxx/v1/process/updateInstance.json</code></pre>
    


</div>
            
            </div>
        </div>
    

    
        <div class='vertical-section'>
            <h1>Type Definitions</h1>
            <div class="members">
            
                <div class="member">

    <span class="method-parameter is-pulled-right">
        <label>Type:</label>
        
<code class="param-type">Object</code>


    </span>

<h4 class="name" id="~SearchFormDatasOption">
    <a class="href-link" href="#~SearchFormDatasOption">#</a>
    
    <span class="code-name">
        SearchFormDatasOption
    </span>
    
</h4>




<div class="description">
    searchFormDatas option 参数类型定义
</div>





    <h5 class="subsection-title">Properties:</h5>

    
<div class="table-container">
    <table class="props table">
        <thead>
        <tr>
            
            <th>Name</th>
            

            <th>Type</th>

            

            

            <th class="last">Description</th>
        </tr>
        </thead>

        <tbody>
        
            
<tr class="deep-level-0">
    
        <td class="name"><code>dynamicOrder</code></td>
    

    <td class="type">
    
        
<code class="param-type">object</code>


    
    </td>

    

    

    <td class="description last">排序规则，详情参见 <a href="https://docs.aliwork.com/docs/developer/api/openAPI#%25E6%25A0%25B9%25E6%258D%25AE%25E6%259D%25A1%25E4%25BB%25B6%25E6%2590%259C%25E7%25B4%25A2%25E8%25A1%25A8%25E5%258D%2595%25E5%25AE%259E%25E4%25BE%258B%25E8%25AF%25A6%25E6%2583%2585%25E5%2588%2597%25E8%25A1%25A8">https://docs.aliwork.com/docs/developer/api/openAPI#%E6%A0%B9%E6%8D%AE%E6%9D%A1%E4%BB%B6%E6%90%9C%E7%B4%A2%E8%A1%A8%E5%8D%95%E5%AE%9E%E4%BE%8B%E8%AF%A6%E6%83%85%E5%88%97%E8%A1%A8</a></td>
</tr>

        
            
<tr class="deep-level-0">
    
        <td class="name"><code>originatorId</code></td>
    

    <td class="type">
    
        
<code class="param-type">string</code>


    
    </td>

    

    

    <td class="description last">数据提交人/流程发起人工号</td>
</tr>

        
            
<tr class="deep-level-0">
    
        <td class="name"><code>createFrom</code></td>
    

    <td class="type">
    
        
<code class="param-type">string</code>


    
    </td>

    

    

    <td class="description last">查询在该时间段创建的数据列表</td>
</tr>

        
            
<tr class="deep-level-0">
    
        <td class="name"><code>createTo</code></td>
    

    <td class="type">
    
        
<code class="param-type">string</code>


    
    </td>

    

    

    <td class="description last">查询在该时间段创建的数据列表</td>
</tr>

        
            
<tr class="deep-level-0">
    
        <td class="name"><code>modifiedFrom</code></td>
    

    <td class="type">
    
        
<code class="param-type">string</code>


    
    </td>

    

    

    <td class="description last">查询在该时间段有修改的数据列表</td>
</tr>

        
            
<tr class="deep-level-0">
    
        <td class="name"><code>modifiedTo</code></td>
    

    <td class="type">
    
        
<code class="param-type">string</code>


    
    </td>

    

    

    <td class="description last">查询在该时间段有修改的数据列表</td>
</tr>

        
            
<tr class="deep-level-0">
    
        <td class="name"><code>taskId</code></td>
    

    <td class="type">
    
        
<code class="param-type">string</code>


    
    </td>

    

    

    <td class="description last">任务ID，仅查询流程表单有效</td>
</tr>

        
            
<tr class="deep-level-0">
    
        <td class="name"><code>instanceStatus</code></td>
    

    <td class="type">
    
        
<code class="param-type">"RUNNING"</code>
|

<code class="param-type">"TERMINATED"</code>
|

<code class="param-type">"COMPLETED"</code>
|

<code class="param-type">"ERROR"</code>


    
    </td>

    

    

    <td class="description last">- 实例状态，仅查询流程表单有效,可选值为：RUNNING, TERMINATED, COMPLETED, ERROR。分别代表：运行中，已终止，已完成，异常。</td>
</tr>

        
            
<tr class="deep-level-0">
    
        <td class="name"><code>approvedResult</code></td>
    

    <td class="type">
    
        
<code class="param-type">"agree"</code>
|

<code class="param-type">"disagree"</code>


    
    </td>

    

    

    <td class="description last">流程审批结果，仅查询流程表单有效</td>
</tr>

        
        </tbody>
    </table>
</div>



<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    
    

    

    

    
        <p class="tag-source">
            <a href="form.js.html" class="button">View Source</a>
            <span>
                <a href="form.js.html">form.js</a>, <a href="form.js.html#line44">line 44</a>
            </span>
        </p>
    
</dl>





</div>
            
            </div>
        </div>
    

    
</article>

</section>




            </div>
            
            <footer class="footer">
                <div class="content has-text-centered">
                    <p>Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a></p>
                    <p class="sidebar-created-by">
                        <a href="https://github.com/SoftwareBrothers/better-docs" target="_blank">BetterDocs theme</a> provided with <i class="fas fa-heart"></i> by
                        <a href="http://softwarebrothers.co" target="_blank">SoftwareBrothers - JavaScript Development Agency</a>
                    </p>
                </div>
            </footer>
            
        </div>
        <div id="side-nav" class="side-nav">
        </div>
    </div>
<script src="scripts/app.min.js"></script>
<script>PR.prettyPrint();</script>
<script src="scripts/linenumber.js"> </script>

<script src="scripts/search.js"> </script>


</body>
</html>